#!/bin/bash
#adb root

if [ $# = 0 ]
then
	echo "Need options..."
elif [ $1 = "-o" ]
then
	cmd=$2
elif [ $# = 1 ]
then
	cmd="select * from $1"
elif [ $# = 2 ]
then
	cmd="select $2 from $1"
fi
adb shell sqlite3 -header -echo -column data/data/com.android.email/databases/EmailProvider.db "$cmd"

